﻿namespace _5.工厂方法模式;

public class LeiFeng
{
    public void Sweep()
    {
        Console.WriteLine("扫地");
    }

    public void Wash()
    {
        Console.WriteLine("洗衣");
    }

    public void BuyRice()
    {
        Console.WriteLine("买米");
    }
}

public class UnderGraduate : LeiFeng
{

}

public class Volunteer : LeiFeng
{

}

